
class JQProductCreateService extends global.JQService {
	

	
    async do_action(){
		
		console.log('product create 33311111');
		if(!this.conn)console.log('do_action::conn error');
		let data_obj = this.req_obj.data_obj;
		let inst = global.JQTableIF.instance('record_table',this.conn);
		
		if(!data_obj || !data_obj){
			throw {'code':global.consts.Error.ERROR_PARAM,
				'message':global.consts.Message.ERROR_PARAM};
		}
		
		let obj = data_obj.obj;
		
		obj.visitor_id=this.req_obj.visitor_id;
		
		let result = await inst.create(obj);	
		
		if(!result)return null;
		let wrap ={obj:result};		
		return wrap;			
	}

}
module.exports = JQProductCreateService;

